package com.dormitory.javadormitory.entity;

import javax.persistence.Table;

@Table(name = "useraccounts")
public class UserAccount {
    private Integer userId;

    private String username;

    private String password;

    private String email;

    private Integer roleId;

    public UserAccount(Integer userId, String username, String password, String email, Integer roleId) {
        this.userId = userId;
        this.username = username;
        this.password = password;
        this.email = email;
        this.roleId = roleId;
    }

    public UserAccount() {
        super();
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Integer getRoleId() {
        return roleId;
    }

    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }
}